package vip.zhenzicheng.algorithm.huawei_od;

import java.util.Scanner;

/**
 * 输入一个正浮点数，计算四舍五入后的值
 * 例如：4.33 -> 4, 5.5 -> 6
 *
 * @author zhenzicheng
 * @date 2023-02-25 13:05
 */
public class Hj7 {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    String num = in.next();
    String[] nums = num.split("\\.");
    int result = Integer.parseInt(nums[0]);
    if (nums[1].charAt(0) >= '5') {
      result++;
    }
    System.out.println(result);
  }
}
